<?php

namespace App\Admin\Controllers\Helpers;

class LinkHelper
{
    public static function displayUser($user): string
    {
        $text = '<i>-</i>';
        if ($user) {
            $text = "{$user->nickname}｜<a href='users?id={$user->id}'>{$user->uuid}</a>";
        }
        return $text;
    }
    public static function displayUsernotlink($user): string
    {
        $text = '<i>-</i>';
        if ($user) {
            $text = "{$user->nickname}｜{$user->uuid}";
        }
        return $text;
    }
}
